import request from '@/utils/request'

// 查询活动报名列表
export function listSignups(data) {
  return request({
    url: '/youqiu/signups/list/activity',
    method: 'post',
    data: data
  })
}

// 查询活动报名详细
export function getSignups(id) {
  return request({
    url: '/youqiu/signups/' + id,
    method: 'get'
  })
}

// 新增活动报名
export function addSignups(data) {
  return request({
    url: '/youqiu/signups',
    method: 'post',
    data: data
  })
}

// 修改活动报名
export function updateSignups(data) {
  return request({
    url: '/youqiu/signups',
    method: 'put',
    data: data
  })
}

// 删除活动报名
export function delSignups(id) {
  return request({
    url: '/youqiu/signups/' + id,
    method: 'delete'
  })
}
